<div class="content" style="width:1050px;margin:0 auto;">
		<!---------- HEADER ---------->
	<div class="article-header">
		<a href="#"><img src="<?php echo base_url();?>assets/themes/digradio/images/communities_dig-u359.png" /></a>
		<iframe id="single-banner" src="<?php echo base_url().'digradio/ads/dig-single';?>"></iframe>
		<div class="clear"> </div>
	</div>
	<div class= "category-header">
		<h1 class = "h1"><span class="h1-title">
				
			<?php
                if(!isset($content['error'])):
                    $category = get_type_name($content[0]['fk-tb_mas_content_types']);
				?>
            <a href="<?php echo base_url() ?>digradio" style="color:#fff;">digradio</a> &gt;
            <?php echo $category; ?> archive
                <?php
                endif;
			?>
		</span></h1>
		<div class="clear"></div>
	</div>
	
<!--------- ARTICLE --------->
	<div class = "modal-pagewrap">
		<div class="article" style="width:680px;float:left;padding:15px;">
            <?php 
            if(!isset($content['error'])):
                if($limit > count($content))
                    $limit = count($content);
            ?>
            <?php //<a class="btn" href="<?php echo base_url().'digradio/archive/'.$category.'/10/'.($offset+$limit); >More</a> ?>
                    
			<?php
            foreach($content as $c): ?>
			<div class="row-fluid" style="padding:10px;">
					<div class="span4">
							<img src="<?php echo IMAGE_UPLOAD_DIR.'medium/'.$c['strPicture'];?>" />
					</div>
					<div class="span5">
						<h3 class="article-title" style="font-size: 20px;line-height: 30px;margin-top: 0px;">
							<a class="modal-trigger" href="<?php echo base_url().'digradio/content/'.get_type_name($c['fk-tb_mas_content_types']).'/'.$c['intID'].'/'.simplify_title($c['strTitle']); ?>" >
								<?php echo $c['strTitle'] ?>
							</a>
						</h3>
						<div class="row-fluid">
							<div id="archive-dte" class="span5">
								<?php
									$date = date('M d, Y', strtotime($c['dteStart']));
									echo $date;
								?>
							</div>
						</div>
					</div>
				</div>
			<?php endforeach;
            else:
            ?>
                <h1><?php echo $content['error']; ?>
            <?php
            endif;?>
            <?php if($archive_count > 5): ?>        
            <ul class="pager">
                <li class="previous <?php echo ($offset == 0 )?'disabled':''; ?>">
                    <?php if($offset == 0 ): ?>
                    <a href="#">&larr; Newer</a>
                    <?php else: ?>
                    <a href="<?php echo base_url(); ?>digradio/archive/<?php echo $typename.'/'.($offset-5); ?>">&larr; Newer</a>
                    <?php endif; ?>
                </li>
                <li style="margin-top:20px;">
                    Page <?php echo ($offset+5)/5; ?> of <?php echo round_to_five($archive_count)/5; ?>
                </li>
                <li class="next <?php echo ($archive_count <= $offset+$limit)?'disabled':''; ?>">
                    <?php if($archive_count <= $offset+$limit): ?>
                    <a href="#">Older &rarr;</a>
                    <?php else: ?>
                    <a href="<?php echo base_url(); ?>digradio/archive/<?php echo $typename.'/'.($offset+$limit); ?>">Older &rarr;</a>
                    <?php endif; ?>
                </li>
            </ul>
            <?php endif; ?>
            <div class="clear"></div>
			
		</div>	
        <!------SIDEBAR----------------------------------->    
		<div class="sidebar" style="width:300px;float:left;">		
			<?php if(!isset($more_content_news['error']) && $typename!='news'): ?>
            <div class="more-content">
                <h3>News</h3>
                <ul>
				<?php 
					foreach($more_content_news as $more): ?>
						<li><a class="modal-trigger sidebar-link" href="<?php echo base_url().'digradio/content/'.get_type_name($more['fk-tb_mas_content_types']).'/'.$more['intID'].'/'.simplify_title($more['strTitle']); ?>" >
							<?php echo $more['strTitle']; ?>
						</a></li>
				<?php endforeach; ?>
                    <li><a href="<?php echo base_url(); ?>digradio/archive/news">More News...</a></li>
                </ul>
                
			</div>
            <?php endif; ?>
            <?php if(!isset($more_content_reviews['error']) && $typename!='reviews'): ?>
            <div class="more-content">
                <h3>Reviews</h3>
                <ul>
				<?php 
					foreach($more_content_reviews as $more): ?>
						<li><a class="modal-trigger sidebar-link" href="<?php echo base_url().'digradio/content/'.get_type_name($more['fk-tb_mas_content_types']).'/'.$more['intID'].'/'.simplify_title($more['strTitle']); ?>" >
							<?php echo $more['strTitle']; ?>
						</a></li>
				<?php endforeach; ?>
                    <li><a href="<?php echo base_url(); ?>digradio/archive/reviews">More Reviews...</a></li>
                </ul>
			</div>
            <?php endif; ?>
            
            <?php if(!isset($more_content_features['error']) && $typename!='features'): ?>
            <div class="more-content">
                <h3>Features</h3>
                <ul>
				<?php 
					foreach($more_content_features as $more): ?>
						<li><a class="modal-trigger sidebar-link" href="<?php echo base_url().'digradio/content/'.get_type_name($more['fk-tb_mas_content_types']).'/'.$more['intID'].'/'.simplify_title($more['strTitle']); ?>" >
							<?php echo $more['strTitle']; ?>
						</a></li>
				<?php endforeach; ?>
                        <li><a href="<?php echo base_url(); ?>digradio/archive/features">More Features...</a></li>
                </ul>
			</div>
            <?php endif; ?>
		</div>
        <div class="clear"></div>
	</div>

</div>